//
//  ViewController.swift
//  对象模模式好处
//
//  Created by 崔博 on 2017/7/18.
//  Copyright © 2017年 崔博. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        let product = Product(name: "name", des: "des", price: 12.1, stock: 10)
        let table = UITableView()
        table.delegate = self
        table.dataSource = self
    }

    func <#name#>(<#parameters#>) -> <#return type#> {
        <#function body#>
    }
}

extension ViewController:UITableViewDelegate,UITableViewDataSource{
    
}
